
AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )

include( 'shared.lua' )

-- ResourceFile --

resource.AddFile("materials/vgui/entities/fists_weapon.vtf")
resource.AddFile("materials/vgui/entities/fists_weapon.vmt")
resource.AddFile("models/weapons/v_fists_t.dx80.vtx")
resource.AddFile("models/weapons/v_fists_t.dx90.vtx")
resource.AddFile("models/weapons/v_fists_t.mdl")
resource.AddFile("models/weapons/v_fists_t.sw.vtx")
resource.AddFile("models/weapons/v_fists_t.vvd")
resource.AddFile("models/weapons/v_fists_tt.dx90.vtx")
resource.AddFile("models/weapons/w_fists_t.dx80.vtx")
resource.AddFile("models/weapons/w_fists_t.dx90.vtx")
resource.AddFile("models/weapons/w_fists_t.mdl")
resource.AddFile("models/weapons/w_fists_t.phy")
resource.AddFile("models/weapons/w_fists_t.sw.vtx")
resource.AddFile("models/weapons/w_fists_t.vvd")
resource.AddFile("sound/weapons/Fist1.wav")
resource.AddFile("sound/weapons/Fist2.wav")
resource.AddFile("sound/weapons/Fist3.wav")
resource.AddFile("sound/weapons/Fist4.wav")
resource.AddFile("sound/weapons/Fistwall1.wav")
resource.AddFile("sound/weapons/Fistmiss1.wav")
resource.AddFile("sound/weapons/Fistmiss2.wav")
	
// Serverside only stuff goes here

/*---------------------------------------------------------
   Name: gamemode:PlayerLoadout( )
   Desc: Give the player the default spawning weapons/ammo
---------------------------------------------------------*/
function GM:PlayerSpawn( ply )
		self.BaseClass:PlayerSpawn( ply )
		ply:SetGravity( 0, 90 )
		ply:SetMaxHealth( 100, false )
		ply:SetWalkSpeed( 150 )
				ply:SetRunSpeed( 225 )
end
 
function GM:PlayerLoadout( ply )

		ply:StripWeapons()
		ply:Give( "fists_weapon" )
		
end

function GM:PlayerInitialSpawn( ply )
		self.BaseClass:PlayerInitialSpawn( ply )
		if ply:IsAdmin() then
				ply:PrintMessage( HUD_PRINTTALK, "OxyRp : Bienvenue a vous Administrateur, j'espere que vous vous portez bien car une journee charge vous attend !")
		end
end